import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/views/home'
import Wallet from '@/views/wallet'
import News from '@/views/news'
import Detail from '@/views/detail'
Vue.use(Router)

export default new Router({
	routes: [
		{
			path: '/',
			redirect: '/home'
		},
		{
			path: '/home',
			name: 'home',
			component: Home
		},
		{
			path: '/wallet',
			name: 'wallet',
			component: Wallet
		},
		{
			path: '/news',
			name: 'news',
			component: News
		},
		{
			path: '/detail',
			name: 'detail',
			component: Detail
		},
		{
			path: '*',
			redirect: { path: '/404' }
		}
	]
})
